package edu.bistu.sim.xwy.blog.Service;

import edu.bistu.sim.xwy.blog.Controller.BusGoodsController;
import edu.bistu.sim.xwy.blog.Controller.Repository.BusGoodsResponsitory;
import edu.bistu.sim.xwy.blog.Controller.Repository.BusUserResponsitory;
import edu.bistu.sim.xwy.blog.domain.BusGoodsInfo;
import edu.bistu.sim.xwy.blog.domain.BusUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusGoodsSevice {
    @Autowired
    private BusGoodsResponsitory busComRepository;

    public List<BusGoodsInfo> findGoodsByName(String bus_user_name){

        return busComRepository.findGoodsByName(bus_user_name);
    };


    public List<BusGoodsInfo> AllGoodsById(int bus_user_id){
        return busComRepository.AllGoodsById(bus_user_id);
    }



}
